const Koa = require('koa')

const router = require('koa-router')()

const views = require('koa-views');

const app = new Koa()

app.use(views(__dirname + '/dist'))
app.use(require('koa-static')(__dirname + '/dist'))

router.get('/', async (ctx, next) => {
  await ctx.render('index')
})

// add router middleware:
app.use(router.routes())

app.listen(9527)
console.log('app started at port 9527...')
